import request from '@/utils/request'

// 获取评审列表数据
export function getProjectContract(query) {
  return request({
    url: '/lims/contract/project/list',
    method: 'get',
    params: query
  })
}

// 获取评审列表数据
export function getProjectReviewList(query) {
  return request({
    url: '/lims/contract/project/reviewList',
    method: 'get',
    params: query
  })
}

// 获取计划方案列表数据
export function getCytask(query) {
  return request({
    url: '/lims/cyTask/project/list',
    method: 'get',
    params: query
  })
}

// 获取方案表单数据
export function getProjectForm(projectId) {
  return request({
    url: '/lims/contract/project/' + projectId,
    method: 'get',
  })
}

// 获取方案表单数据
export function batchReview(data) {
  return request({
    url: '/lims/contract/project/submitProject',
    method: 'post',
    data: data
  })
}

// 获取方案详情检测内容列表数据
export function getProjectJcxmList(query) {
  return request({
    url: '/lims/project/jcxm/list',
    method: 'get',
    params: query
  })
}

// 检测内容列表保存接口
export function addProjectJcxmList(data) {
  return request({
    url: '/lims/project/jcxm',
    method: 'post',
    data: data
  })
}

// 详情时间编辑保存
export function addEiditProject(data) {
  return request({
      url: '/lims/contract/project',
      method: 'put',
      data: data
  })
}

// 获取签字
export function getSign(query) {
  return request({
    url: '/system/user/local/getMySign',
    method: 'get',
    params: query
  })
}